//
//  ActionSheetViewController.m
//  myDemo2
//
//  Created by wuxueying on 14-4-30.
//
//

#import "ActionSheetViewController.h"
#import "AHKActionSheet.h"

@interface ActionSheetViewController ()
@end
@implementation ActionSheetViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (IBAction)actionSheet:(id)sender {
    AHKActionSheet *actionSheet = [[AHKActionSheet alloc] initWithTitle:NSLocalizedString(@"choose avatar", nil)];
    
    [actionSheet addButtonWithTitle:NSLocalizedString(@"Info", nil)
                              image:[UIImage imageNamed:@"Icon1"]
                               type:AHKActionSheetButtonTypeDefault
                            handler:^(AHKActionSheet *actionSheet) {
                                NSLog(@"Info tapped");
                            }];
    
    [actionSheet addButtonWithTitle:NSLocalizedString(@"Add to Favorites", nil)
                              image:[UIImage imageNamed:@"Icon2"]
                               type:AHKActionSheetButtonTypeDefault
                            handler:^(AHKActionSheet *actionSheet) {
                                NSLog(@"Favorite tapped");
                            }];
    
    [actionSheet addButtonWithTitle:NSLocalizedString(@"Share", nil)
                              image:[UIImage imageNamed:@"Icon3"]
                               type:AHKActionSheetButtonTypeDefault
                            handler:^(AHKActionSheet *actionSheet) {
                                NSLog(@"Share tapped");
                            }];
    
    [actionSheet addButtonWithTitle:NSLocalizedString(@"Delete", nil)
                              image:[UIImage imageNamed:@"Icon4"]
                               type:AHKActionSheetButtonTypeDestructive
                            handler:^(AHKActionSheet *actionSheet) {
                                NSLog(@"Delete tapped");
                            }];
    
    [actionSheet show];
}
@end
